/**
 * copyright(c) 2013 www.jiongshibaoliao.com, All Rights Reserved.
 * project: jiongshibaoliao 
 * author: 曾帅
 * date: 2014-1-8 下午03:30:55
 * version: v1.0
 */

package com.jiongshibaoliao.model;

import java.util.Date;

import com.jiongshibaoliao.model.enums.Audit;

/**
 * @project jiongshibaoliao
 * @author 曾帅
 * @version 1.0
 * @date 2014-1-8 下午03:30:55
 */

public class Article extends BaseModel {

	private String title;

	private String content;

	private String imgPath;

	private Audit audit;
	
	private String upLoadIp;

	private Date createDate;

	private Date lastUpdate;

	private Long userId;

	public Article() {
	}

	public Article(String title, String content, String imgPath, Audit audit,
			String upLoadIp, Date createDate, Date lastUpdate, Long userId) {
		this.title = title;
		this.content = content;
		this.imgPath = imgPath;
		this.audit = audit;
		this.upLoadIp = upLoadIp;
		this.createDate = createDate;
		this.lastUpdate = lastUpdate;
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "Article [audit=" + audit + ", content=" + content
				+ ", createDate=" + createDate + ", imgPath=" + imgPath
				+ ", lastUpdate=" + lastUpdate + ", title=" + title
				+ ", userId=" + userId + "]";
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Audit getAudit() {
		return audit;
	}

	public void setAudit(Audit audit) {
		this.audit = audit;
	}

	public String getUpLoadIp() {
		return upLoadIp;
	}

	public void setUpLoadIp(String upLoadIp) {
		this.upLoadIp = upLoadIp;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
